<?php
//header('Content-type: application/xml');    
// DEBUG: Hardcoded remote status text file
//$daurl = 'http://192.168.1.102/status.txt';    
// DEBUG: Hardcoded local status text file
$daurl = $_POST['val'];      
//echo $daurl;  
$handle = fopen($daurl, "r");   
if($handle) {
  while(!feof($handle)) {
    $buffer = fread($handle, 1024);             
    echo $buffer;    
  }
  fclose($handle);    
}
?>
